package qplayas

import org.springframework.jms.connection.CachingConnectionFactory.ConsumerCacheKey;

class IndexController {

	def oauthService
	
    def index = { 		
		def response = oauthService.accessResource(						
			'http://api.twitter.com/1/account/verify_credentials.json',			 
			'twitter', [				
				key:session.oauthToken.key, 
				secret:session.oauthToken.secret
			], 'GET'
		)
		
		def userName = response.name
		def userTwitterApi = response.id
		
		render view:'/index'
	}
}
